<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>跨境电商借卖平台登录</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/bootstrap-4.6.2-dist/css/bootstrap.css" >
    <style>
        body, html {
            margin: 0;
            padding: 0;
            height: 100%;
        }
        .wrapper {
            background-image: url('${pageContext.request.contextPath}/static/images/bg.jpg');
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            overflow: hidden;
            height: 100%;
            position: relative;
        }
        .login-container {
            width: 500px;
            background-color: rgba(255, 255, 255, 0.9);
            border-radius: 10px;
            margin: 150px auto;
            padding: 50px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }
        .form-group label {
            font-weight: bold;
        }
        .form-control {
            border-radius: 25px;
        }
        .btn {
            border-radius: 25px;
            padding: 10px 30px;
        }
        .btn-primary {
            background-color: #007bff;
            border: none;
        }
        .btn-success {
            background-color: #28a745;
            border: none;
        }
        #alertContainer {
            text-align: center;
        }
    </style>
</head>
<body>
<div class="wrapper">
    <div class="login-container">
        <div style="text-align: center; font-size: 30px; font-weight: bold; color: #333;">跨境电商借卖平台登录</div>
        <form action="login" method="post">
            <div class="form-group">
                <label for="role">您的身份</label>
                <select id="role" class="form-control" name="role" required>
                    <option value="GVO">管理员</option>
                    <option value="MVO">品牌商</option>
                    <option value="BVO">借卖方</option>
                </select>
            </div>
            <div class="form-group">
                <label for="username">用户名</label>
                <input id="username" type="text" class="form-control" name="username" required>
            </div>
            <div class="form-group">
                <label for="password">密码</label>
                <input id="password" type="password" class="form-control" name="password" required>
            </div>

            <div style="text-align: center">
                <button type="submit" class="btn btn-primary">登录</button>
                <a href="register.jsp"><button type="button" class="btn btn-success" style="margin-left: 10px">注册</button></a>
                <div align="center" style="color:red; font-weight: bold;margin-top: 10px">${tips}</div>
            </div>
        </form>
    </div>
    <div id="alertContainer" style="position: fixed; top: 10%; left: 50%; transform: translate(-50%, -50%); z-index: 5;"></div>
</div>
</body>
</html>
